import React, { FC } from 'react';
import LayoutFrame from './layout-frame';
// import BasicLayout from '@ant-design/pro-layout/lib/BasicLayout';
// import DefaultLayout from 'hzero-front/lib/layouts/DefaultLayout';
// import { Link } from 'umi';

const Layout: FC<any> = (props) => {
  return (
    <LayoutFrame
      {...props}
      menuData={[
        {key: 'UED', path: '/ued', title: '配置中心', icon: 'settings-o'},
        {key: 'templates', path: '/templates', title: '模板列表', icon: 'format_list_bulleted'},
        {key: 'blocks', path: '/blocks', title: '区块列表', icon: 'format_list_bulleted'},
      ]}
    >
      {
        props.type === 'block' ? <div className="hzero-block-container">{props.children}</div> : props.children
      }
    </LayoutFrame>
  );
};

export default Layout;